package com.hsgene.statistics.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.statistics.service.api.OrderFeignService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * OrderFeignServiceImpl
 *
 * @author wangbing
 * @version 1.0
 * @date 2019/1/22 16:37
 * Copyright: Copyright (c) 2019
 */
@Component
public class OrderFeignServiceImpl implements OrderFeignService {

    private final static Logger LOGGER = LoggerFactory.getLogger(OrderFeignServiceImpl.class);

    @Override
    public ApiResult queryOrders(int size, int page, String queryType) {
        LOGGER.error("订单服务不可用");
        return ApiResult.fail(CommonErrorCode.ORDER_SERVICE_NOT_AVAILABLE);
    }
}
